#!/usr/bin/env bash

# git clone http://git.mykidx.com/assessment/gop.git
# cd gop

# set up backend asset dir such as model and audio
BACKEND_ASSET_DIR=/opt/kidx/deploy/tts

# set up package version
VERSION=latest

docker build -f Dockerfile . -t tts-server:$VERSION


docker run -it \
	--rm \
	--name tts-server \
	-p 5002:5002\
	-v "$BACKEND_ASSET_DIR"/data:/opt/models \
	-v "$BACKEND_ASSET_DIR"/output:/opt/upload \
	-v "$BACKEND_ASSET_DIR"/configs:/opt/configs \
	tts-server:$VERSION
